package persistent.prestige.console.threadmode.t3.channel;

import java.io.Serializable;

/**
 * 管道，编排Handler的执行
 * @author dingwei2
 *
 */
public interface ChannelPipeline extends Serializable {
	
	void fireChannelRegister();
	
	void fireChannelRead(Object msg);
	
	void fireChannelWrite(Object msg);
	
	void fireExceptionCaught(Throwable e);
	
	
	ChannelPipeline addLast(ChannelHandler handler);
	
	ChannelPipeline remove(ChannelHandler handler);

}
